<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>派单环节</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		#include("../wxJsCss.html")		
	</head>
	<body>
		<div class="mui-content">
			<div class="mui-card">
				<ul class="mui-table-view">
				#if(expressinfo.size()==0)
					<li class="mui-table-view-cell mui-collapse mui-active">
						<a class="mui-navigate-right" href="#">新建快递</a>
						<div class="mui-collapse-content">
							<form class="mui-input-group" action="pack/add">
								<div class="mui-button-row">
									<button class="mui-btn mui-btn-primary" type="submit">创建快递单</button>
								</div>
							</form>
						</div>
					</li>
				#else
					#for(x:expressinfo)
					<li class="mui-table-view-cell mui-collapse mui-active">
						<a class="mui-navigate-right" href="#">封包详情</a>
						<div class="mui-collapse-content">
							<ul class="mui-table-view">
								<li class="mui-table-view-cell">
								快递单号：<span>#(x.trackingID??)</span>
								</li>
								<li class="mui-table-view-cell">
								始发网点：<span>#(x.source??)</span>
								</li>
								<li class="mui-table-view-cell">
								目的网点：<span>#(x.destination??)</span>
								</li>
								<li class="mui-table-view-cell">
								发件时间：<span>#(x.sendDate??)</span>
								</li>
							</ul>
						</div>
						<div class="mui-collapse-content">
								<li class="mui-table-view-cell mui-collapse mui-active">
									<a class="mui-navigate-right" href="#">已添加包裹
									<span class="mui-badge mui-badge-primary">#(expresscontent.get(x.trackingID).size()??0)</span>
									</a>
									<div class="mui-collapse-content">
									<ul class="mui-table-view mui-table-view-chevron">
										#for(y: expresscontent.get(x.trackingID))
										<li class="mui-table-view-cell">
										包裹：<span>#(y.type)&nbsp;&nbsp;#(y.packageid)</span>
										</li>
										#end
									</ul>
									</div>
								</li>
								<li class="mui-table-view-cell">
								<br>
									<a href="pack/finish" class="mui-btn mui-btn-primary" role="button">
									确认封包
									</a>	
								</li>		
						</div>
					</li>
					#end
				#end
				</ul>
			</div>
		</div>
		<script>
			mui.init({
				swipeBack:true //启用右滑关闭功能
			});
		</script>
	</body>

</html>